package com.mytx.common.constant;

public class Constant {
    //----------------------------------------------------------------返回码

    public static final int SEND_MOBILE_CODE_FAIL_HAVE_NO_COUNT = 0;
    //号码已经被使用，无法使用该号码注册
    public static final int SEND_MOBILE_CODE_FAIL_ENGAGED = 2;

    //用户性别相关的常量
    //支付宝表示性别男
    public static final String RETURN_ALIPAY_GENDER_MALE = "m";
    //支付宝表示性别女
    public static final String RETURN_ALIPAY_GENDER_FEMALE = "f";
    //数据库表示性别男
    public static final Integer DATA_BASE_GENDER_MALE = 0;
    //数据库表示性别女
    public static final Integer DATA_BASE_GENDER_FEMALE = 1;


    //手机号无效，找不到这个手机号，该手机号没绑定任何账户
    public static final int PHONE_NUMBER_INVALID = 3;

    //手机号格式错误
    public static final int PHONE_NUMBER_FORMAT_ERROR = 4;

    //全局异常捕获
    public static final int GLOBAL_EXCEPTION_HANDL_ERROR = 5;

    public static final int MOBILE_CODE_EXPIRE = 1000;
    public static final int MOBILE_CODE_ERROR = 1001;
    //密码无效
    public static final int PASS_WORD_WRONG = 1002;

    public static final int USER_NAME_INVALID = 1003;
    //token无效
    public static final int TOKEN_INVALID = 1004;
    //手机号无效 找不到对应的手机号
    public static final int MOBILE_INVALID = 1006;
    public static final int REFUSE_ADD_CONTACT = 1007;
    //验证码已经被使用
    public static final int MOBILE_CODE_USED = 1008;
    public static final int NO_AUTHORITY = 1009;
    public static final int HAVE_NOT_MORE_CHILD_CONTACT = 1010;
    public static final int VALIDATE_SIGN_FAIL = 1011;
    //同步通知验签：订单信息不符
    public static final int RECHARGE_ORDING_INFO_ERROR = 1012;
    //支付宝认证码无效
    public static final int ALI_AUTH_CODE_INVALID = 1013;
    //支付宝系统错误
    public static final int ALI_SYSTEM_ERROR = 1014;
    //获取锁失败
    public static final int GET_LOCK_FAIL = 1015;
    //发红包出错
    public static final int FUND_COUPON_EOOR = 1016;
    //现金优惠券（红包）已经过期，
    public static final int FUND_COUPON_STATUS_EXPIRED = 1017;
    //现金优惠券（红包）接收人不匹配
    public static final int FUND_COUPON_TARGET_USER_MISMATCHING = 1018;
    //捐款出错:未知错误
    public static final int UNKNOWN_ERROR = 1019;
    //转发捐款没有权限
    public static final int DONATION_FORWARD_NO_AUTHORIZATION = 1020;
    //捐款转发重复
    public static final int DONATION_FORWARD_REPEAT = 1021;
    //转发捐款列表为空
    public static final int DONATION_FORWARD_NO_DATA = 1022;
    // 已经有支付密码了，不能直接覆盖，只能携带旧支付密码重新设置
    public static final int SETUP_PAY_PASSWORD_REPEAT = 1023;
    //支付密码错误
    public static final int PAY_PASSWORD_ERROR = 1024;

    //登录次数超过限制
    public static final int LOGIN_ERROR_LIMIT = 1025;

    //24小时限制--限制通过登录密码修改绑定手机号
    public static final int FORBID_MODIFY_PHONE_NUMBER_24 = 1026;
    //24小时限制--限制通过 登录密码重置支付密码
    public static final int FORBID_MODIFY_PAY_PASSWORD_24 = 1027;

    //通过登录密码找回 支付密码，连续提交错误的 登录密码
    public static final int RETRIEVE_PAY_PASSWORD_ERROR_LIMIT = 1028;
    //缺少支付密码
    public static final Integer NO_PAY_PASSWORD = 1029;

    //用户授权登录初始化密码
    public static final String INITIAL_PASSWORD = "123456";
    //支付前需要先设置支付密码
    public static final Integer NEED_SETUP_PAY_PASSWORD_BEFORE = 1030;

    //当前出价低于原始出价
    public static final Integer OFFER_ERROR_AMOUNT_LOWER = 1031;
    //拍卖没有开始
    public static final Integer OFFER_ERROR_NOT_START = 1032;

    //拍卖已经结束
    public static final Integer OFFER_ERROR_HAD_STOP = 1033;

    public static final Integer OFFER_ERROR_TOPIC_INVALID = 1034;
    //非法访问
    public static final Integer ILLEGAL_ACCESS = 1035;
    //订单无效
    public static final Integer ORDER_INVALID = 1036;
    //订单状态错误
    public static final Integer ORDER_STATUS_ERROR = 1037;
    //主题状态错误
    public static final Integer TOPIC_STATUS_ERROR = 1038;


    //悬赏任务不存在
    public static final Integer REWARD_TASK_INVALID = 1039;
    //悬赏任务状态错误
    public static final Integer REWARD_TASK_STATUS_ERROR = 1040;
    public static final Integer REWARD_TASK_RECEIVED = 1041;
    //表示双方已经互相删除了
    public static final Integer DELETE_CONTACT_ERROR = 1042;

    //当前被添加的联系人已经是联系人关系，不能重复添加
    public static final Integer GOOD_FIREND_ERROR = 1043;


    //悬赏主题任务还有任务未被处理
    public static final Integer REWARD_TOPIC_STATUS_ERROR = 1044;

    //悬赏主题已经取消了
    public static final Integer REWARD_TOPIC_ALREADY_CANCEL = 1045;

    //主题已经删除了
    public static final Integer REWARD_TOPIC_ALREADY_DELETE = 1046;

    //参数无效
    public static final Integer PARAMETER_INVALID = 1047;

    //捐赠拆回状态错误
    public static final Integer DONATION_STATUS_ERROR = 1048;


    //别人已经占用直播间了
    public static final int LIVE_ROOM_HAD_STARTED = 7000;
    //余额不足
    public static final int BALANCE_NOT_ENOUGH = 7001;
    //余额被锁住
    public static final int BALANCE_HAD_LOCK = 7002;
    //广告位竞争出价失败，获取锁失败
    public static final int OFFER_BUSY = 7003;
    //停止直播 用户捐赠金额大于用户收益 正常情况下，不会出现这个情况， app 端做了限制
    public static final int STOP_LIVE_DONATION_ERROR_USER_PROFIT_NOT_ENOUGH = 7004;


    //红包已经领取
    public static final int RECEIVE_COUPON_ERROR_RECEIVED = 8000;
    //红包已经领完
    public static final int RECEIVE_COUPON_ERROR_REMAIN_ZERO = 8001;


    //------------------------------------------------------ 优惠卷（红包）状态
    public static final int COUPON_STATUS_EXPIRED = -1;//红包已经过期
    public static final int COUPON_STATUS_RECEIVABLE = 0;//红包未领取
    public static final int COUPON_STATUS_RECEIVED = 1;//红包已经领取
    public static final int COUPON_STATUS_REMAIN_ZERO = 2;// 红包已经领完
    //-----------------------------------------------------
    public static final int COUPON_TYPE_ALI_FUND = 0;//支付宝红包
    public static final int COUPON_TYPE_SINGLE = 1;//蚂蚁金币一对一红包
    public static final int COUPON_TYPE_MULTIPLE_AVERAGE = 2;//蚂蚁金币一对多红包:平均红包
    public static final int COUPON_TYPE_MULTIPLE_RANDOM = 3;//蚂蚁金币一对多红包:随机金额红包
    public static final int COUPON_TYPE_CHILD_RANDOM = 4;//随机金额子红包
    public static final int COUPON_TYPE_CHILD_AVERAGE = 5;//平均金额子红包

    //---------------------------------------------------- 推送信息类型
    public static final int PUSH_MESSAGE_REQUEST_ADD_CONTACT = 0;
    public static final int PUSH_MESSAGE_ACCEPT_ADD_FRIEND = 1;
    public static final int PUSH_MESSAGE_REFUSE_ADD_CONTACT = 2;
    public static final int PUSH_MESSAGE_DELETE_CONTACT = 11;
    public static final int PUSH_MESSAGE_CONTACT_INFO_CHANGE = 12;
    public static final int PUSH_MESSAGE_REQUEST_QUERY_LOCATION = 13;
    public static final int PUSH_MESSAGE_UPDATE_USER_INFO = 15;
    public static final int PUSH_MESSAGE_CONTACT_USER_INFO_CHANGE = 16;
    public static final int PUSH_MESSAGE_OFFER_SUCCESS = 17;
    public static final int PUSH_MESSAGE_OFFER_FAIL = 18;
    public static final int PUSH_MESSAGE_SYSTEM_MESSAGE = 19;
    public static final int PUSH_MESSAGE_PERSON_RECEIVED_DONATION = 20;
    public static final int PUSH_MESSAGE_PERSON_RECEIVED_FORWARD = 21;
    public static final int PUSH_MESSAGE_NEW_TOPIC = 22;
    public static final int PUSH_MESSAGE_FOUND_COUPON = 23;
    public static final int PUSH_MESSAGE_OFFER_TO_TOPIC_SUCCESS = 24;
    public static final int PUSH_MESSAGE_OFFER_TO_TOPIC_FAIL = 25;
    //订单推送信息
    public static final int PUSH_MESSAGE_ORDER_INFO = 31;
    public static final int PUSH_MESSAGE_ORDER_TRANSFER = 32;//手动提现推送消息
    //悬赏任务推送信息
    public static final int PUSH_MESSAGE_TASK_INFO = 35;
    //主题新管理员推送消息
    public static final int PUSH_MESSAGE_NEW_MANGER = 36;
    //地区 行业 学校类型的主题需要核准的推送分类  推送给管理员
    public static final int PUSH_MESSAGE_TOPIC_VERIFY = 37;

    //------------------------------------------------------联系人状态
    public static final String CONTACT_STATUS_MUTUAL = "0"; //表示正常的好友关系
    public static final String CONTACT_STATUS_MDELETE = "1";//表示我是主动添加方把好友删除
    public static final String CONTACT_STATUS_TDELETE = "2";//表示我是被添加方把好友删除
    public static final String CONTACT_STATUS_DELETE = "3"; //表示好友关系不存在
    public static final String CONTACT_NO_LOCATIION = "0"; //表示对方不能查询我的位置信息
    public static final String CONTACT_NO_RELATION_INFINITE = "0";//表示对方不能查询我的轨迹信息
    /*public static final String CONTACT_STATUS_DELETE = "0";//对方已经将我删
    public static final String CONTACT_STATUS_SINGLE = "1";//单边的联系人关系，一方已经被另一方从联系人中删除，
    public static final String CONTACT_STATUS_MUTUAL = "2";//相互的联系人关系，*/

    //------------------------------------------------------邀请信息状态
    public static final String ADD_CONTACT = "ADD_CONTACT:";//redis key,保存添加联系人请求
    public static final String INVITE_STATUS_REFUSE = "0";//请求添加联系人被拒绝

    //------------------------------------------------------权限
    public static final String LOCATION_AUTHORITY = "1";//查看定位权限

    //-------------------------------------------------------直播间状态
    public static final int LIVE_ROOM_STATUS_STOPED = 0;//直播停止
    public static final int LIVE_ROOM_STATUS_STARTED = 1;//开始直播/直播中 非拍卖模式
    public static final int LIVE_ROOM_STATUS_AUCTION = 2;// 开始直播/直播中 拍卖模式

    //---------------------------------------------------------直播打赏，罚金的状态
    // 未结算打赏金额
    public static final int NOT_BALANCE_ACCOUNTS = 0;
    //已经结算直播打赏金额
    public static final int HAD_BALANCE_ACCOUNTS = 1;


    //---------------------------------------------------------
    //登录过期时间 30天
    public static final Integer LOGIN_EXPIRE_TIME = 30;


    //---------------------------------------------------------redis key
    //key of 主题的评论数量
    public static final String COMMENT_SIZE = "COMMENT_SIZE:";
    // key of  记录一个同步周期内有那些主题需要被同步到mysql
    public static final String LIKE_TOPIC_ID = "LIKE_TOPIC_ID:";
    //  key of  记录某主题是由哪些人点的赞，以此来判断某人是否给某主题点过赞，
    public static final String TOPIC_PRAISE_RECORD = "TOPIC_PRAISE_RECORD:";
    //key of 记录某个主题的点赞数量
    public static final String TOPIC_PRAISE_SIZE = "TOPIC_PRAISE_SIZE:";
    // key of 某评论是由哪些人点的赞，以此来判断某人是否给某评论点过赞，
    public static final String COMMENT_PRAISE_RECORD = "COMMENT_PRAISE_RECORD:";
    //key of 评论被点赞的数量
    public static final String COMMENT_PRAISE_SIZE = "COMMENT_PRAISE_SIZE:";
    //key of 评论的子评论的数量
    public static final String CHILD_COMMENT_SIZE = "CHILD_COMMENT_SIZE:";
    //key of 直播间
    public static final String LIVE_ROOM = "LIVE_ROOM:";
    //直播间成员key
    public static final String LIVE_ROOM_MEMBER = "LIVE_ROOM_MEMBER:";

    public static final String OFF_LINE_MESSAGE_RECORD = "OFF_LINE_MESSAGE_RECORD:";

    //key of 需要去除广告位的直播间
    public static final String ADVERTISEMENT_CLEAR_SET = "ADVERTISEMENT_CLEAR_SET:";
    //key of 直播间锁
    public static final String LIVE_ROOM_LOCK = "LIVE_ROOM_LOCK:";
    //key of 用户缓存
    public static final String USER_SESSION = "USER_SESSION:";
    //key of 用户缓存锁
    public static final String USER_SESSION_LOCK = "USER_SESSION_LOCK:";
    //红包锁
    public static final String COUPON_LOCK = "COUPON_LOCK:";
    //广告位 锁
    public static final String ADVERTISEMENT_LOCK = "ADVERTISEMENT_LOCK:";
    //key of 主体捐款余额锁
    public static final String TOPIC_DONATION_BALANCE_LOCK = "TOPIC_DONATION_BALANCE_LOCK:";

    //key of 验证码
    public static final String MOBILE_CODE = "MOBILE_CODE:";

    //key of 发验证码 计数
    public static final String SEND_COUNT = "SEND_COUNT:";

    //key of 充值
    public static final String RECHARGE_KEY = "RECHARGE_KEY:";
    //key of 优惠卷 红包
    public static final String FUND_COUPON = "FUND_COUPON:";

    //直播打赏记录
    public static final String LIVE_RECORD = "LIVE_RECORD:";
    //直播惩罚(喝倒彩，点踩，鄙视)记录
    public static final String LIVE_MULCT_RECORD = "LIVE_MULCT_RECORD:";
    //key of 关注
    public static final String FOLLOW_RECORD = "FOLLOW_RECORD:";
    //key of 主题收到捐款总额
    public static final String TOPIC_RECEIVED_DONATION = "TOPIC_RECEIVED_DONATION:";
    //key of 主题收到捐款余额
    public static final String TOPIC_DONATION_BALANCE = "TOPIC__DONATION_BALANCE:";
    //红包 key
    public static final String COUPON_SET = "COUPON_SET:";
    public static final String COUPON_RECORD = "COUPON_RECORD:";
    public static final String COUPON_RECEIVED_RECORD = "COUPON_RECEIVED_RECORD:";

    //广告位key
    public static final String ADVERTISEMENT_RECORD = "ADVERTISEMENT_RECORD:";
    //key  有人出过价的广告位id 集合：需要定时结算，得出广告位竞得者
    public static final String ADVERTISEMENT_SET = "ADVERTISEMENT_SET";
    //key  改变了的广告位：需要更新到直播间缓存中的广告位Id 集合
    public static final String ADVERTISEMENT_CHANGE = "ADVERTISEMENT_CHANGE:";
    public static final String ADVERTISEMENT_EXPIRE_SET = "ADVERTISEMENT_EXPIRE_SET:";

    //直播间广告位 各个时间段最高价 记录
    public static final String MAX_PRICE_RECORD = "MAX_PRICE_RECORD:";


    //
    public static final String TOPIC_AUCTION = "TOPIC_AUCTION:";
    public static final String TOPIC_AUCTION_SET = "TOPIC_AUCTION_SET:";
    public static final String TOPIC_OFFER = "TOPIC_OFFER:";
    //需要结算的拍卖的key
    public static final String AUCTION_HANDLE_RECORD = "AUCTION_HANDLE_RECORD:";
    //出价 key
    public static final String OFFER_RECORD = "OFFER_RECORD:";
    public static final String OFFER_SET = "OFFER_SET:";
    //订单支付到期的key,到期不支付，自动扣保证金
    public static final String ORDER_PAY_EXPIRY_SET = "ORDER_PAY_EXPIRY_SET:";
    //订单自动退款 key
    public static final String ORDER_REFUND_SET = "ORDER_REFUND_SET:";
    //订单退货 key (卖家同意退款，如果买家一直没有退货，时间到了，默认买家放弃退货，按自动收货处理，交易结束)
    public static final String ORDER_REFUND_GOODS_SET = "ORDER_REFUND_GOODS_SET:";

    //买家退后后，卖家自动确认收到退货 key  (买家退货后，卖家需要在一定期限处理订单，表示未收到货或者已经收到货，如果超时未处理，默认按卖家收到退货处理，交易结束)
    public static final String ORDER_AUTO_RECEIVE_REFUND_GOODS_SET = "ORDER_AUTO_RECEIVE_REFUND_GOODS_SET:";

    //订单自动收货的key
    public static final String ORDER_AUTO_RECEIVE_SET = "ORDER_AUTO_RECEIVE_SET:";
    //订单记录的 key
    public static final String ORDER_RECORD = "ORDER_RECORD:";

    //任务记录 key
    public static final String TASK_RECORD = "TASK_RECORD:";
    //任务锁的key
    public static final String TASK_LOCK = "TASK_LOCK:";
    //任务取消 id 记录
    public static final String TASK_CANCEL_SET = "TASK_CANCEL_SET:";
    //任务完成 id 记录
    public static final String TASK_FINISH_SET = "TASK_FINISH_SET:";

    //----------------------------------------------------- 以下下4个常量对应User 实体类中的 5个 field,
    //用于在redis 中缓存用户 的 普通 余额  可提现
    public static final String BALANCE = "balance";
    //保证金
    public static final String DEPOSIT = "deposit";
    //用于在redis 中缓存用户 捐出的 捐赠 总额
    public static final String DONATION_AMOUNT = "donationAmount";
    //用于在redis 中缓存用户 收到的 捐赠 余额
    public static final String DONATION_BALANCE = "donationBalance";
    //用于在redis 中缓存用户 收到的 捐赠 总额
    public static final String DONATION_RECEIVED = "donationReceived";

    //------------------------------------------------------------ 捐款分类
    // 捐款类型:用户捐给某个主题：带悬赏金、地区、学校三种类型的主题，这样的捐款，由主题管理者决定用途，
    // 但是带悬赏金的捐赠，只有当有人领取悬赏金的时候，一并领取，除此之外， 主题发布者并不能决定受捐金额用在其他地方
    // 如果主题发布者删除主题，捐款返还给捐款的用户，捐款可主动撤销，捐款者能看到捐款用途
    public static final int DONATION_TYPE_TO_TOPIC = 1;
    //捐款类型:捐给个人，捐款可主动撤销，捐款者能看到捐款用途
    public static final int DONATION_TYPE_TO_PERSON = 2;

    //投广告位自动生成的捐赠，无法拆回
    public static final int DONATION_TYPE_ADVERTISEMENT = 4;
    //直播结束后，从收益中按收益比例生成的捐赠 无法拆回
    public static final int DONATION_TYPE_LIVE_PROFIT = 5;


    //捐赠不可拆回
    public static final int DONATION_STATUS_COULD_NOT_REVOKE = 0;
    //捐赠可拆回
    public static final int DONATION_STATUS_COULD_REVOKE = 1;
    //捐赠已经拆回
    public static final int DONATION_STATUS_ALREADY_REVOKE = 2;
    //捐赠已经转发
    public static final int DONATION_STATUS_FORWARD = 3;

    //主题、评论、转赠的被举报状态
    public static final Integer TYPE_ACCUSATION = 5;
    public static final int TOPIC_STATUS_DELETE = 0;
    public static final int TOPIC_STATUS_NORMAL = 1;
    public static final int TOPIC_STATUS_REWARD_COMPLETE = 2;//主题状态：悬赏完成
    public static final int TOPIC_STATUS_REWARD_CANCEL = 3;//悬赏主题的状态:已经取消了
    //主题的待审核状态，地区、行业、学校新发布进入审核状态
    public static final int TOPIC_STATUS_VERIFY = 6;
    public static final int TOPIC_STATUS_VERIFY_FAILE = 7;//审核失败
//---------------------------------------------------------- 主题类型

    public static final int TOPIC_TYPE_LOST_PEOPLE = 0;//找人  该类型可设置悬赏金，可接受捐赠，受赠金额经主题发布者确认后，给到符合条件的线索提供者
    public static final int TOPIC_TYPE_REWARD = 1;//悬赏  该类型可设置悬赏金，可接受捐赠，受赠金额经主题发布者确认后，给到符合条件的线索提供者
    public static final int TOPIC_TYPE_FOUND = 2;//招领
    public static final int TOPIC_TYPE_EXPOSE = 3;//曝光
    public static final int TOPIC_TYPE_GIFT = 4;//赠送
    public static final int TOPIC_TYPE_SHOW = 5;//show
    public static final int TOPIC_TYPE_AUCTION = 6;//拍卖
    public static final int TOPIC_TYPE_GOODS = 7;//普通商品
    public static final int TOPIC_TYPE_SCHOOL = 8;//学校，该类型可接受捐赠，受赠金额由主题管理员在公开监督下支配
    public static final int TOPIC_TYPE_AREA = 9;//地区，该类型可接受捐赠，受赠金额由主题管理员在公开监督下支配
    public static final int TOPIC_TYPE_INDUSTRY = 10;//行业，该类型可接受捐赠，受赠金额由主题管理员在公开监督下支配
    public static final int TOPIC_TYPE_USER_INFO = 11;//用户信息，用于检索用户信息，在注册的时候，生成信息保存进es,当更新用户信息的时候，同步更新es
    public static final int TOPIC_TYPE_OTHER = 12;//其他

    //----------------------------------------------------订单相关
    public static final int ORDER_STATUS_CONFLICT = -1;//出现交易冲突
    public static final int ORDER_STATUS_INIT = 0;//初始化-刚生成
    public static final int ORDER_STATUS_OFFER_SUCCESS = 1;//竞价成功
    public static final int ORDER_STATUS_OFFER_FAIL = 2;//竞价失败
    public static final int ORDER_STATUS_PAID = 3;//已支付
    public static final int ORDER_STATUS_EXPIRED = 4;//已过期
    public static final int ORDER_STATUS_BUYER_CANCELLED = 5;//买家取消未付款订单，如果是拍卖订单，买家会被扣取保证金
    public static final int ORDER_STATUS_TRADE_SUCCESS = 6;//交易成功、确认收货
    public static final int ORDER_STATUS_CANCEL_REFUND = 7;//买家取消退款
    public static final int ORDER_STATUS_REFUNDING = 8;//退款中 ing
    public static final int ORDER_STATUS_REFUND_COMPLETED = 9;//退款完成
    public static final int ORDER_STATUS_REFUSE_REFUND = 10;//拒绝退款
    public static final int ORDER_STATUS_SELLER_CANCELLED = 11;//卖家取消未付款订单
    public static final int ORDER_STATUS_SELLER_CANCEL_ON_PAID = 12;//卖家取消已付款订单
    public static final int ORDER_STATUS_AGREE_REFUND_GOODS = 16;//同意退货
    public static final int ORDER_STATUS_SENT = 17;//已经发货
    //订单4个退款状态
    public static final int ORDER_REFUND_STATUS_INTERRUPT = -1;//退款状态因卖家发货而中断
    public static final int ORDER_REFUND_STATUS_NOT_RECEIVED_REFUND_ALL = 0;//没有收到货全额退款
    public static final int ORDER_REFUND_STATUS_RECEIVED_REFUND_ALL = 1;//已经收到货全额退款,并且退货
    public static final int ORDER_REFUND_STATUS_RECEIVED_REFUND_PART = 2;//已经收到货部分退款，不退货，这种情况，当卖家同意的时候，进行账单结算，交易结束
    //订单的3个发货状态
    public static final int ORDER_SEND_STATUS_WAIT_SEND = 0;//未发货
    public static final int ORDER_SEND_STATUS_SENT = 1;//已发货
    public static final int ORDER_SEND_STATUS_RECEIVED = 2;//已收货
    public static final int ORDER_STATUS_DELETE = 1;//订单的删除状态

    //------------------------------------------------订单分类
    public static final Integer ORDER_TYPE_TO_ADVERTISEMENT = 0;//广告位出价，受益方是我们平台
    public static final Integer ORDER_TYPE_TO_AUCTION_TOPIC = 1;//拍卖商品出价，收益方是 拍卖发起人：卖家
    public static final Integer ORDER_TYPE_NORMAL = 2;//普通订单


    //悬赏任务(订单) 状态
    public static final int TASK_STATUS_INIT = 0;//初始化-刚生成
    public static final int TASK_STATUS_CONFIRM = 1;//悬赏任务得到 雇主确认
    public static final int TASK_STATUS_EMPLOYER_CANCEL = 2;//雇主取消悬赏任务
    public static final int TASK_STATUS_EMPLOYEE_CANCEL = 3;//雇佣者取消悬赏任务0
    public static final int TASK_STATUS_EMPLOYEE_REFUSE_CANCEL = 4;//雇佣者拒绝取消悬赏任务
    public static final int TASK_STATUS_EMPLOYEE_AGREE_CANCEL = 5;//雇佣者同意取消悬赏任务
    public static final int TASK_STATUS_APPLY_FINISH_TASK = 6;//雇佣者申请完成任务，等待雇主确认
    public static final int TASK_STATUS_EMPLOYER_REFUSE_FINISH_APPLY = 7;//雇主拒绝雇佣者的完成任务申请
    public static final int TASK_STATUS_CONFIRM_FINISH = 8;//任务确认完成
    public static final int TASK_STATUS_CONFIRM_FAIL = 9;//确认失败/未通过雇主的确认
    public static final int TASK_STATUS_EXPIRY_AUTO_CANCEL = 10;//到期自动取消
    public static final int TASK_STATUS_EXPIRY_AUTO_FINISH = 11;//到期自动结算
    public static final int TASK_STATUS_OTHER_ONE_COMPLETE = 12;//已经有人完成了悬赏任务
    public static final int TASK_STATUS_REWARD_COMPLETE = 13;//表示发布者已经取消了悬赏任务


    //------------------------------------------------广告位状态
    public static final Integer ADVERTISEMENT_STATUS_INIT = 0;//广告位状态-初始化
    public static final Integer ADVERTISEMENT_STATUS_SETTLEMENT = 1;//广告位状态-已结算


    //---------------------------------redis 消息队列主题 名称
    public static final String NOTIFY_ADVERTISEMENT_NEED_SET_SHOW_CONTENT = "NOTIFY_ADVERTISEMENT_NEED_SET_SHOW_CONTENT";
    public static final String NOTIFY_OFFER_TO_TOPIC_SUCCESS = "NOTIFY_OFFER_TO_TOPIC_SUCCESS";
    public static final String NOTIFY_OFFER_TO_TOPIC_FAIL = "NOTIFY_OFFER_TO_TOPIC_FAIL";
    public static final String NOTIFY_OFFER_FAIL = "NOTIFY_OFFER_FAIL";
    public static final String NOTIFY_LIVE_TO_START = "NOTIFY_LIVE_TO_START";
    public static final String NOTIFY_LIVE_TO_STOP = "NOTIFY_LIVE_TO_STOP";
    public static final String NOTIFY_LIVE_RECEIVED_REWARD = "NOTIFY_LIVE_RECEIVED_REWARD";
    public static final String NOTIFY_LIVE_RECEIVED_MULCT = "NOTIFY_LIVE_RECEIVED_MULCT";
    public static final String NOTIFY_LIVE_RECEIVED_OFFER = "NOTIFY_LIVE_RECEIVED_OFFER";
    public static final String NOTIFY_LIVE_RECEIVED_DONATION = "NOTIFY_LIVE_RECEIVED_DONATION";//直播间（主题）收到捐赠
    public static final String NOTIFY_PERSON_RECEIVED_DONATION = "NOTIFY_PERSON_RECEIVED_DONATION";//个人收到捐赠
    public static final String NOTIFY_PERSON_RECEIVED_FORWARD = "NOTIFY_PERSON_RECEIVED_FORWARD";//个人收到转赠
    public static final String NOTIFY_ADVERTISEMENT_CHANGE = "NOTIFY_ADVERTISEMENT_CHANGE";//直播间展示的广告位改变
    public static final String NOTIFY_GENERATE_NEW_ADVERTISEMENT = "NOTIFY_GENERATE_NEW_ADVERTISEMENT";//生成了新的可出价的广告位
    public static final String NOTIFY_NEW_TOPIC = "NOTIFY_NEW_TOPIC";//新主题
    public static final String NOTIFY_FOUND_COUPON = "NOTIFY_FOUND_COUPON";//发现红包
    public static final String NOTIFY_SYNC_USER_INFO = "NOTIFY_SYNC_USER_INFO";//通知用户同步用户信息
    public static final String NOTIFY_CHATID_CHANGE_INFO = "NOTIFY_CHATID_CHANGE_INFO";//通知给旧的群成员
    public static final String NOTIFY_TOPIC_VERIFY = "NOTIFY_TOPIC_VERIFY";//通知管理员有地区或者行业或者学校类型的主题需要核准
    public static final String NOTIFY_PUSH_MESSAGE = "NOTIFY_PUSH_MESSAGE";
    public static final String NOTIFY_CHAR_ROOM_MESSAGE = "NOTIFY_CHAR_ROOM_MESSAGE";
    //订单相关通知
    public static final String NOTIFY_ORDER_INFO = "NOTIFY_ORDER_INFO";
    public static final String ORDER_RECHARGE_PAY_STATUS = "0"; //充值预支付状态
    public static final String ORDER_OK_PAY_STATUS = "1";//充值已经支付成功了
    public static final String ORDER_ERROR_PAY_STATUS = "2";//充值订单异常
    public static final Integer ORDER_TRANSFER_APPLY_STATUS = 0;//提现申请
    public static final Integer ORDER_TRANSFER_SUCCESS_STATUS = 1;//提现成功
    public static final Integer OREDER_TRANSFER_ERROR_STATUS = 2;//提现异常订单
    //悬赏相关通知
    public static final String NOTIFY_TASK_INFO = "NOTIFY_TASK_INFO";
    //更新 缓存的出价记录
    public static final String NOTIFY_MODIFY_ADVERTISEMENT_MAX_PRICE = "NOTIFY_MODIFY_ADVERTISEMENT_MAX_PRICE";

    public static final Integer LIVE_ROOM_PUSH_MESSAGE_LIVE_START = 1;
    public static final Integer LIVE_ROOM_PUSH_MESSAGE_LIVE_STOP = 2;
    public static final Integer LIVE_ROOM_PUSH_MESSAGE_RECEIVED_REWARD = 3;
    public static final Integer LIVE_ROOM_PUSH_MESSAGE_RECEIVED_MULCT = 4;
    public static final Integer LIVE_ROOM_PUSH_MESSAGE_RECEIVED_OFFER = 5;
    public static final Integer LIVE_ROOM_PUSH_MESSAGE_RECEIVED_DONATION = 6;
    public static final Integer LIVE_ROOM_PUSH_MESSAGE_ADVERTISEMENT_CHANGE = 7;
    public static final Integer LIVE_ROOM_PUSH_MESSAGE_ADVERTISEMENT_MAX_PRICE_CHANGE = 8;
    //移交主题管理推送消息给旧群
    public static final int LIVE_ROOM_PUSH_MESSAGE_CHATID_CHANGE = 9;

    //--------------------------------------------- 文件类型
    public static final int FILE_TYPE_PICTURE = 0;
    public static final int FILE_TYPE_VIDEO = 1;

    public static final int FILE_STATUS_UPLOAD_SUCCESS = 1;//文件已经上传，但是文件地址还没有保存在服务端
    public static final int FILE_STATUS_REMOTE = 2;//文件地址已经保存在服务端

    //--------------------------------------------- 粉丝关注相关
    public static final String USER_FOLLOW_LIST = "USER_FOLLOW_LIST:"; //关注列表
    public static final String USER_FANS_LIST = "USER_FANS_LIST:"; //粉丝列表

    //----------------------------------------------HTTP响应状态码
    public static final Integer RETURN_HTTP_STATUS_ERROR = 500;
    public static final Integer RETURN_HTTP_STATUS_SUCCESS = 200;
    public static final Integer RETURN_HTTP_STATUS_ALIUSER_EXIT = 201; //表示支付宝账户已经被绑定了
    public static final Integer RETURN_HTTP_STATUS_TRANSFER_ORDER_NOT_EXIST = 202;//表示提现订单不存在


    public static final String DATE_HOUR_FORMAT = "yyyy-MM-dd HH";

    //消息的各种状态
    public static final Integer IM_SEND_STATE_FAIL = 0;//消息发送状态-失败
    public static final Integer IM_SEND_STATE_SUCCESS = 1;//消息发送状态-成功
    public static final Integer IM_RED_STATE_UNREAD = 0;//消息读取状态-未读
    public static final Integer IM_RED_STATE_READED = 1;//消息读取状态-已读

    //消息的类型
    // 进直播间通知
    public static final int IM_TYPE_JOIN_LIVE_ROOM = 100;
    //离开直播间通知
    public static final int IM_TYPE_QUIT_LIVE_ROOM = 101;


    //一对多消息 群消息
    public static final int TRIBE_MESSAGE= 0;
    //一对一消息
    public static final int  P2P_MESSAGE= 1;
    //离线p2p消息 前端应该序列化为集合
    public static final int MULTIPLE_OFF_LINE_MESSAGE = 2;
    //系统推送消息
    public static final int SYSTEM_MESSAGE = 3;
    //聊天室消息
    public static final int LIVE_ROOM_MESSAGE = 4;
    //账户消息
    public static final int ACCOUNT_MESSAGE = 5;

    //重复登录
    public static final String REPEAT_LOGIN="repeatLogin";
    //账户被锁/被禁用
    public static final String ACCOUNT_LOCK="accountLock";




    //消息不可见 关乎前端 未读消息小红点的计算
    public static final Integer MESSAGE_INVISIBLE = 0;
    //消息可见   关乎前端 未读消息小红点的计算
    public static final Integer MESSAGE_VISIBLE = 1;
}
